{
    "$schema": "/schema/schema-manifest.json",
    "start_url": "http://wat-docs.azurewebsites.net/",

    "wat_cortana": {
        "enabled": true,
        "navBar": true,
        "appBar": true,
        "settings": true,
        "search": true
    },

    "wat_customScript": {
        "scriptFiles": [
            "injection-script-example.js"
        ]
    },

    "wat_navigation": {
        "hideOnPageBackButton": false,
        "hideBackButtonOnMatch": [
            "{baseURL}/Json#livetiles"
        ],
        "pageLoadingPartial": "/template/partials/page-loading.html"
    },

    "wat_errors": {
        "showAlertOnError": false,
        "alertMessage": "Sorry, but there was an error. It has been logged. Please contact us if the issue continues.",
        "redirectToErrorPage": false,
        "errorPageURL": "error-example.html"
    },

    "wat_logging": {
        "enabled": true,
        "level": "log",
        "disableWithoutDebugger": false,
        "hideTagDisplay": true,
        "ignoreTags": [
            "winjs"
        ],
        "logErrorsForIgnoredTags": true,
        "overrideConsoleMethods": true,
        "disableConsoleLog": false,
        "fileLog": {
            "enabled": true,
            "level": "info",
            "filename": "logs\\wat-docs_%D.log",
            "format": "%L on Line %l of %f\r\n%D %T: %M (%t)",
            "maxLogFiles": 7
        }
    },

    "wat_share": {
        "enabled": true,
        "showButton": true,
        "buttonText": "Share",
        "buttonSection": "global",
        "title": "WAT Documentation",
        "url": "{currentURL}",
        "screenshot": true,
        "message": "{url} shared with {appLink} for Windows Phone and Windows 8 Store apps."
    },

    "wat_offline": {
        "enabled": true,
        "message": "It looks like you are offline. Please reconnect to use this application.",
        "superCache": {
            "enabled": false,
            "baseDomainURL": "http://wat-docs.azurewebsites.net/",
            "addIndexedDBSupport": true,
            "imagesGuardBand": true,
            "preCacheURLs": [ ],
            "ignoreURLs": [ ]
        }
    },

    "wat_geoLocation": {
        "enabled": true
    },

    "wat_appBar": {
        "enabled": true,
        "makeSticky": false,
        "buttons": [
            {
                "label": "Settings",
                "icon": "edit",
                "action": "settings"
            },
            {
                "label": "Get Started",
                "icon": "previewlink",
                "action": "http://wat-docs.azurewebsites.net/GetStarted",
                "section": "selection"
            }
        ]
    },

    "wat_navBar": {
        "enabled": true,
        "maxRows": 2,
        "makeSticky": false,
        "buttons": [
            {
                "label": "Back",
                "icon": "back",
                "action": "back"
            },
            {
                "label": "home",
                "icon": "home",
                "action": "home"
            },
            {
                "label": "JSON Reference",
                "icon": "library",
                "action": "nested",
                "children": [
                    {
                        "label": "navbar",
                        "icon": "link",
                        "action": "http://wat-docs.azurewebsites.net/Json#navigationbar"
                    },
                    {
                        "label": "appbar",
                        "icon": "link",
                        "action": "http://wat-docs.azurewebsites.net/Json#applicationbar"
                    },
                    {
                        "label": "share",
                        "icon": "link",
                        "action": "http://wat-docs.azurewebsites.net/Json#share"
                    }
                ]
            },
            {
                "label": "About WAT",
                "icon": "gotostart",
                "action": "http://wat-docs.azurewebsites.net/About"
            },
            {
                "label": "Getting Started",
                "icon": "play",
                "action": "http://wat-docs.azurewebsites.net/GetStarted"
            },
            {
                "label": "Support",
                "icon": "people",
                "action": "http://wat-docs.azurewebsites.net/Support"
            },
            {
                "label": "Log Message",
                "icon": "edit",
                "action": "eval",
                "data": "console.log('this was fired from within the webview:', window.location.href);"
            }
        ],
        "pageElements._disabled": {
            "pageElements._comment": "Instead of manually configuring the buttons as above, you can use the pageElements settings to build the buttons out of the site HTML DOM content.",
            "navElements": ".navbar-nav li:not(.dropdown)",
            "linkElement": "a",
            "linkAttribute": "href",
            "textElement": "a"
        }
    },

    "wat_livetile": {
        "enabled": true,
        "periodicUpdate": 1,
        "enableQueue": true,
        "tilePollFeed": "http://wat-docs.azurewebsites.net/feed"
    },

    "wat_isroller": true,
    
    "wat_notifications": {
        "enabled": true,
        "azureNotificationHub": {
            "enabled": false,
            "endpoint": "https://wat-demo.servicebus.windows.net/",
            "secret": "bPQTTVcagkyDfsz3M+OIhwJNxP+Jy2pXDfmUomSUVa4=",
            "path": "wat-demo",
            "tags": [
                "Category One",
                "Category Two",
                "Category Three",
                "Category Four"
            ]
        }
    },

    "wat_redirects": {
        "enabled": true,
        "enableCaptureWindowOpen": true,
        "refreshOnModalClose": true,
        "rules": [
            {
                "pattern": "http://getbootstrap.com?",
                "action": "showMessage",
                "message": "Sorry, but you can't access this feature in the native app, please visit us online at http://wat-docs.azurewebsites.net"
            },
            {
                "pattern": "*.microsoft.com*",
                "action": "showMessage",
                "message": "Redirecting you to the Microsoft website..."
            },
            {
                "pattern": "http://msdn.microsoft.com/*",
                "action": "popout"
            },
            {
                "pattern": "{baseURL}/Json#search",
                "action": "redirect",
                "url": "http://bing.com"
            },
            {
                "pattern": "*/drive_api/calculator/login",
                "action": "modal",
                "hideCloseButton": true,
                "closeOnMatch": "*/drive_api/calculator/complete_login"
            }
        ]
    },

    "wat_settings": {
        "enabled": true,
        "privacyUrl": "http://wat-docs.azurewebsites.net/Privacy",
        "items": [
            {
                "title": "Support",
                "page": "http://wat-docs.azurewebsites.net/Support",
                "loadInApp": true
            },
            {
                "title": "Codeplex Site",
                "page": "http://www.codeplex.com"
            }
        ]
    },

    "wat_styles": {
        "setViewport": true,
        "targetWidth": "",
        "targetHeight": "800px",
        "suppressTouchAction": false,
        "extendedSplashScreenBackground": "#464646",
        "hiddenElements": [
            "header",
            ".bs-header"
        ],
        "backButton": {
            "borderColor": "#FFFFFF",
            "color": "#FFFFFF"
        },
        "wrapperCssFile": "/css/wrapper-styles.css",
        "customCssFile": "/css/injected-styles.css",
        "customCssString": "body {padding:0;font-size: 14pt;} .container{margin-left:120px; margin-right:0px;} .bs-header{height: 140px;padding-left:0px;} .bs-header h1{margin:0;margin-top:10px;} .bs-header h1{margin-right:0;} .bs-header p{display:none;}"
    },

    "wat_header": {
        "enabled": true,
        "backgroundColor": "#7fba00",
        "navDrawerBackgroundColor": "#375569",
        "logo": "/images/widelogo.scale-100.png",
        "title": {
            "enabled": true,
            "displayOnHomePage": true
        }
    },

    "wat_search": {
        "enabled": true,
        "searchURL": "http://wat-docs.azurewebsites.net/search/?query={searchTerm}",
        "useOnScreenSearchBox": true,
        "onScreenSearchOptions": {
            "chooseSuggestionOnEnter": false,
            "focusOnKeyboardInput": false,
            "placeholderText": "What are you looking for?",
            "searchHistoryDisabled": false
        }
    },

    "wat_secondaryPin": {
        "enabled": true,
        "buttonText": "Pin It!",
        "tileTextTheme": "light",
        "buttonSection": "global",
        "squareImage": "/images/logo.scale-100.png",
        "wideImage": "/images/widelogo.scale-100.png"
    },

    "wat_styleTheme": "dark"
}